package com.talent.service;

import com.talent.page.Page;
import com.talent.pojo.Major;
import com.talent.vo.MajorDepartVo;

import java.util.List;

public interface MajorService {

    int addMajor(Major major);

    Page<Major> selectMajorPage(Major major, int currentPage);

    Major selectById(Integer id);

    int editMajor(Major major);

    int deleteById(Integer id);

    Page<MajorDepartVo> selectMajorDepartVoPage(MajorDepartVo majorDepartVo, int currentPage);

    int validate(String name);

    void deleteAll(String[] split);

    List<Major> selectAllMajor();

    MajorDepartVo selectMajorDepartById(Integer id);
	
	Integer selectIdByMajorName(String majorName);
}
